from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("file:////Users/minyang/local/work/PycharmProjects/git/learn/week34/webautotest/page/form.html")

el =driver.find_element(By.XPATH,"//*[@id='inputEmail']")
el.send_keys('jackson')
sleep(1)
el.clear()
sleep(1)
el.send_keys('fengluo')
sleep(1)
driver.find_element(By.XPATH,"//*[@id='inputPassword']").send_keys('123456')
sleep(1)
driver.find_element(By.XPATH,"/html/body/form/div[3]/div/button").click()
sleep(2)

driver.quit()

